package com.xinli.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xinli.business.mapper.ConsultantTagsMapper;
import com.xinli.business.domain.ConsultantTags;
import com.xinli.business.service.IConsultantTagsService;

/**
 * 标签Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-24
 */
@Service
public class ConsultantTagsServiceImpl extends ServiceImpl<ConsultantTagsMapper,ConsultantTags>  implements IConsultantTagsService
{
    @Autowired
    private ConsultantTagsMapper consultantTagsMapper;

    /**
     * 查询标签
     *
     * @param id 标签主键
     * @return 标签
     */
    @Override
    public ConsultantTags selectConsultantTagsById(Long id)
    {
        return consultantTagsMapper.selectConsultantTagsById(id);
    }

    /**
     * 查询标签列表
     *
     * @param consultantTags 标签
     * @return 标签
     */
    @Override
    public List<ConsultantTags> selectConsultantTagsList(ConsultantTags consultantTags)
    {
        return consultantTagsMapper.selectConsultantTagsList(consultantTags);
    }

    /**
     * 新增标签
     *
     * @param consultantTags 标签
     * @return 结果
     */
    @Override
    public int insertConsultantTags(ConsultantTags consultantTags)
    {
            return consultantTagsMapper.insertConsultantTags(consultantTags);
    }

    /**
     * 修改标签
     *
     * @param consultantTags 标签
     * @return 结果
     */
    @Override
    public int updateConsultantTags(ConsultantTags consultantTags)
    {
        return consultantTagsMapper.updateConsultantTags(consultantTags);
    }

    /**
     * 批量删除标签
     *
     * @param ids 需要删除的标签主键
     * @return 结果
     */
    @Override
    public int deleteConsultantTagsByIds(Long[] ids)
    {
        return consultantTagsMapper.deleteConsultantTagsByIds(ids);
    }

    /**
     * 删除标签信息
     *
     * @param id 标签主键
     * @return 结果
     */
    @Override
    public int deleteConsultantTagsById(Long id)
    {
        return consultantTagsMapper.deleteConsultantTagsById(id);
    }
}
